FROM myrepo.com:5000/openjdk:dockerize

ENV SPRING_PROFILES_ACTIVE=docker,native \
	NATIVE_SEARCH_LOCATIONS=file:/config

EXPOSE 8761
VOLUME /config

# Add directly the war
copy target/*.war /jhipster-registry.war

CMD ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/jhipster-registry.war","--spring.profiles.active=${SPRING_PROFILES_ACTIVE}"]
